<include file="public@header" />
<link rel="stylesheet" href="__TMPL__/public/assets/css/bootstrap-grid.min.css">
<link rel="stylesheet" href="__TMPL__/public/assets/css/zoomify.min.css">
</head>
<body>
<div class="wrap js-check-wrap">
	<ul class="nav nav-tabs">
		<li class="active"><a href="{:url('goodsstate/index')}">属性表</a></li>
		<li ><a href="{:url('goodsstate/add')}">添加属性</a></li>
	</ul>
	<!--<form class="well form-inline margin-top-20" method="post" action="{:url('goodsstate/index')}">
		店铺：
		<select class="form-control" name="stort" style="width: 140px;">
			<foreach name="stort" item="stort">
				<option value='{$stort.id}'>{$stort.store_name}</option>
			</foreach>
		</select> &nbsp;&nbsp;
		<input type="submit" class="btn btn-primary" value="搜索" />
		<a class="btn btn-danger" href="{:url('goodsstate/index')}">清空</a>

	</form>-->
	<table class="table table-hover table-bordered">
		<thead>
		<tr>
			<th width="40">ID</th>
			<th align="left">属性名</th>
			<th align="left">时间</th>
			<th align="left">状态</th>
			<th width="210">操作</th>
		</tr>
		</thead>
		<tbody>
           <foreach name="data" item="data">
			   <tr>
				   <td>{$data.id}</td>
				   <td>{$data.state_name}</td>
				   <td>{$data.time|time_format}</td>
				   <if condition="$data.status eq 1">
				   <td>开启</td>
					<else/>
					<td>关闭</td>
				   </if>
				   <td>
					   <a class="" href="{:url('goodsstate/update',['id'=>$data['id']])}">修改</a>
					   <a class="js-ajax-dialog-btn" href="{:url('goodsstate/del',['id'=>$data['id']])}">删除</a>
				   </td>
			   </tr>
		   </foreach>
		</tbody>
	</table>
	<div class="pagination">{$page}</div>
</div>
<script src="__TMPL__/public/assets/js/zoomify.min.js"></script>
<script type="text/javascript">
    $('.example img').zoomify();
</script>
<script src="__STATIC__/js/admin.js"></script>
</body>
</html>